package com.qianguo.shop.entity.mock;

import android.os.Parcel;

import com.qianguo.shop.entity.Contact;

/**
 * Created by Forcs on 15/11/29.
 */
public class MockContact extends Contact {

    private int mContactId;

    protected MockContact(Parcel in) {
        super(in);
        mContactId = in.readInt();
    }

    public MockContact() {
        super();
    }

    public MockContact(int id) {
        mContactId = id;
    }

    @Override
    public int getContactId() {
        return mContactId;
    }

    @Override
    public String getTime() {
        return "11:53";
    }

    @Override
    public String getName() {
        return "张三";
    }

    @Override
    public int getUserId() {
        return 2;
    }

    @Override
    public String getLastMessage() {
        return "测试内容测试内容，测试内容测试内容测试内容测试内容测试内容测试内容测试内容测试内容测试内容测试内容";
    }

    @Override
    public String getLastOrderCode() {
        return "20151129332020310";
    }

    @Override
    public String getLastOrderStatus() {
        return "配送中";
    }

    @Override
    public int describeContents() {
        return super.describeContents();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeInt(mContactId);
    }

    public final static Creator<MockContact> CREATOR = new Creator<MockContact>() {
        @Override
        public MockContact createFromParcel(Parcel source) {
            return new MockContact(source);
        }

        @Override
        public MockContact[] newArray(int size) {
            return new MockContact[size];
        }
    };
}
